package first;

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		double circlex=sc.nextDouble();
		double circley=sc.nextDouble();
		double circler=sc.nextDouble();
		Shape circle=new Circle(circlex,circley,circler);
		System.out.println(circle.toString());
		
		double rectx=sc.nextDouble();
		double recty=sc.nextDouble();
		double rectl=sc.nextDouble();
		double rectw=sc.nextDouble();
		
		Shape rectangle=new Rectangle(rectx,recty,rectl,rectw);
		System.out.println(rectangle.toString());
		
		
		
	}
}
